﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Activation;

namespace Demo.ServiceImplementation
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]    
    public class WebCalculatorService : ServiceContracts.IWebCalculatorService
    {
        public double Suma(string  a, string b)
        {
            var t1 = double.Parse(a);
            var t2 = double.Parse(b);
            var bc = new BusinessLogic.BCCalculator();
            return bc.Suma(t1, t2);                  
        }

        public double Multiplicacion(double a, double b)
        {
            return a * b;
            
             
        }

        public string Test()
        {
            return DateTime.Now.ToLongTimeString();
        }
    }
}
